<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    <div class="box">这是box</div>
</body>
<script>
    var oBox = document.querySelector(".box")

    console.log(oBox);

    // js属性不分内置或自定义，都可以使用对象的语法操作

    console.log( oBox.children );
    console.log( oBox.nodeType );

    oBox.abc = "hello abc";
    console.log( oBox.abc );
    
    oBox.class = "hello class"
    console.log( oBox.class );

    console.log( oBox.tagName );

    // =======

    console.log( oBox.innerHTML );
    console.log( oBox.innerText );
    console.log( oBox.clientWidth );
    console.log( oBox.clientHeight );
    console.log( oBox.offsetWidth );
    console.log( oBox.offsetHeight );
    console.log( oBox.scrollHeight );
    console.log( oBox.scrollWidth );
    console.log( oBox.offsetLeft );
    console.log( oBox.offsetTop );





</script>
</html>